INSERT INTO
    [Document]
(
    [SegmentId]
,   [Title]
,   [DocumentShortName]
,   [FileName]
,   [Path]
,   [CreateDate]
,   [ModificationDate]
,   [TemplateId]
,   [IsRoot]
,   [IsActive]
,   [SortOrdinal]
,   [ClientId]
,   [Tag]
)
VALUES
(
    @SegmentId
,   @Title
,   @DocumentShortName
,   @FileName
,   @Path
,   @CreateDate
,   @ModificationDate
,   @TemplateId
,   @IsRoot
,   @IsActive
,   @SortOrdinal
,   @ClientId
,   @Tag
);

SELECT NewId = @@IDENTITY;
